<template>
	<view class="user-chat-bottom uni-flex animated fadeInDown fast">
		<input type="text" placeholder="文明发言" v-model="text" />
		<view class="icon iconfont icon-fabu" @tap="submit"></view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				text:""
			}
		},
		methods:{
			submit(){
				this.$emit('submit',this.text);
				this.text="";
			}
		}
	}
	
	
</script>
 
<style scoped>
	.uni-flex {
			display: flex;
			justify-content: flex-start;
		}
	.user-chat-bottom{
		position: fixed;
		left: 0;
		bottom: 0;
		right: 0;
		height: 110upx;
		padding: 0 3%;
		background: #FFFFFF;
		border-top: 1upx solid #EEEEEE;
	}	
	.user-chat-bottom>input{
		margin: auto;
		flex: 1;
		margin-right: 20upx;
		background: #F7F7F7;
		padding: 2%;
		border-radius: 10upx;
		
	}
	.user-chat-bottom>view{
		width: 60upx;
		text-align: center;
		margin: auto;
		font-size: 45upx;
	}
</style>
